<%@page import="java.rmi.server.ServerCloneException"%>
<%@page import="com.aring.bean.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
	   <title>个人信息</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<link href="../css/userInfo.css" rel="stylesheet" type="text/css" media="screen">
		<script type="text/javascript" src="../js/jquery-1.9.0.min.js"></script>
		<script type="text/javascript" src="../js/userHomePage.js"></script>
	</head>
	<body>
	<%  User user =  (User)session.getAttribute("user");
	    if(user==null) user = new User();
	%>
	
	
	
		<ul id="nav">
			<li><a href="../logout.do">退出登录</a>
			<li><a href="../index.jsp">首页</a></li>
		</ul>
		<form action="setting.do" method="post">
		<div class="personalInfo" style="margin-top:20px;">
			<div class="header">
				<h1>个人信息</h1>
			</div>
			<div class="infoDetail">
				<ul class="form">
					<li>
						<label for="user" class="input-tips">账户：</label>
						<div class="inputOuter">
							<input type="text" value="<%=user.getAccount() %>" id="user" name="user" maxlength="16" class="inputstyle" disabled="disabled"/>
						</div>
					</li>
					<li>
						<label for="user" class="input-tips">性别：</label>
						<div class="inputOuter">
							<input type="text" id="sex" value="<%=user.getSex() %>" name="sex" maxlength="2" class="inputstyle"/>
						</div>
					</li>
					<li>
						<label for="user" class="input-tips">学校：</label>
						<div class="inputOuter">
							<input type="text" id="school" value="<%=user.getSchool()%>" name="school" maxlength="16" class="inputstyle"/>
						</div>
					</li>
					<li>
						<label for="user" class="input-tips">爱好：</label>
						<div class="inputOuter">
							<textarea id="hobby" name="hobby" class="inputstyle" style="height:60px;"><%=user.getHobby()%></textarea>
						</div>
					</li>
					<li>
						<div class="inputArea">
							<input type="submit" id="reg" style="margin-top:20px;margin-left:95px;" class="button_blue" value="完善并保存"/>
						</div>
					</li>
				</ul>
			</div>
		</div>
		</form>
	</body>
</html>